home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1538.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.4 KB  |  183 lines

  1. 131
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. CopyXFilesProgress 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baCopyXFilesProgress copies multiple files, while displaying a progress dialog
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baCopyXFilesProgress( SourceDir , DestDir , FileSpec, Overwrite, Title, 
  28. --- RECORDSEPARATOR ---
  29. ButtonText, Flags )
  30. --- RECORDSEPARATOR ---
  31.  
  32. --- RECORDSEPARATOR ---
  33. Arguments:
  34. --- RECORDSEPARATOR ---
  35.  
  36. --- RECORDSEPARATOR ---
  37. String, string, string, string, string, string, integer. 
  38. --- RECORDSEPARATOR ---
  39. SourceDir is the folder to copy from. 
  40. --- RECORDSEPARATOR ---
  41. DestDir is the folder to copy to. 
  42. --- RECORDSEPARATOR ---
  43. FileSpec determines what files are copied. 
  44. --- RECORDSEPARATOR ---
  45. Overwrite determines how the copy is done. Can be: 
  46. --- RECORDSEPARATOR ---
  47. "Always" 
  48. --- RECORDSEPARATOR ---
  49. always copies the file 
  50. --- RECORDSEPARATOR ---
  51. "IfNewer" 
  52. --- RECORDSEPARATOR ---
  53. copies the file if SourceFile is newer than DestFile 
  54. --- RECORDSEPARATOR ---
  55. "IfNotExist" 
  56. --- RECORDSEPARATOR ---
  57. copies only i
  58. --- RECORDSEPARATOR ---
  59. f DestFile does not already exist 
  60. --- RECORDSEPARATOR ---
  61. Title is the title of the dialog box. 
  62. --- RECORDSEPARATOR ---
  63. ButtonText is the text to use in the Cancel button. 
  64. --- RECORDSEPARATOR ---
  65. Flags changes the behaviour of the dialog, see notes for details.
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. Returns:
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. Integer. 
  74. --- RECORDSEPARATOR ---
  75. Returns 0 if the file was copied successfully, otherwise one of these: 
  76. --- RECORDSEPARATOR ---
  77. --- RECORDSEPARATOR ---
  78. Invalid Source file name 
  79. --- RECORDSEPARATOR ---
  80. --- RECORDSEPARATOR ---
  81. Invalid Dest file name 
  82. --- RECORDSEPARATOR ---
  83. --- RECORDSEPARATOR ---
  84. Error reading the Source file 
  85. --- RECORDSEPARATOR ---
  86. --- RECORDSEPARATOR ---
  87. Error writing the Dest file 
  88. --- RECORDSEPARATOR ---
  89. --- RECORDSEPARATOR ---
  90. Couldn't create directory for Dest file 
  91. --- RECORDSEPARATOR ---
  92. --- RECORDSEPARATOR ---
  93. Dest file exists 
  94. --- RECORDSEPARATOR ---
  95. --- RECORDSEPARATOR ---
  96. Dest file is newer that Source file 
  97. --- RECORDSEPARATOR ---
  98. --- RECORDSEPARATOR ---
  99. No files matched the specified type 
  100. --- RECORDSEPARATOR ---
  101. --- RECORDSEPARATOR ---
  102. User cancelled the copy
  103. --- RECORDSEPARATOR ---
  104.  
  105. --- RECORDSEPARATOR ---
  106. Examples:
  107. --- RECORDSEPARATOR ---
  108.  
  109. --- RECORDSEPARATOR ---
  110. Director: 
  111. --- RECORDSEPARATOR ---
  112. OK = baCopyXFilesProgress( "c:\data" , "d:\backup" , "*.dat", "IfNewer", "Backing 
  113. --- RECORDSEPARATOR ---
  114. up files... ", "Cancel", 0 ) 
  115. --- RECORDSEPARATOR ---
  116. Authorware: 
  117. --- RECORDSEPARATOR ---
  118. OK := baCopyXFilesProgress( "c:\\data" , "d:\\backup" , "*.dat", "IfNewer" , "Backing 
  119. --- RECORDSEPARATOR ---
  120. up files... ", "Cancel", 0 )
  121. --- RECORDSEPARATOR ---
  122.  
  123. --- RECORDSEPARATOR ---
  124. Notes:
  125. --- RECORDSEPARATOR ---
  126.  
  127. --- RECORDSEPARATOR ---
  128. By default, this function will not overwrite an existing file if that file is marked as 
  129. --- RECORDSEPARATOR ---
  130. read-only. However, on Windows, by adding 
  131. --- RECORDSEPARATOR ---
  132. "
  133. --- RECORDSEPARATOR ---
  134. +
  135. --- RECORDSEPARATOR ---
  136. --- RECORDSEPARATOR ---
  137. to the 
  138. --- RECORDSEPARATOR ---
  139. "
  140. --- RECORDSEPARATOR ---
  141. Always
  142. --- RECORDSEPARATOR ---
  143. --- RECORDSEPARATOR ---
  144. and 
  145. --- RECORDSEPARATOR ---
  146. "
  147. --- RECORDSEPARATOR ---
  148. IfNewer
  149. --- RECORDSEPARATOR ---
  150. --- RECORDSEPARATOR ---
  151. options (eg "Always+" or "IfNewer+"), the destination files will be overwritten if they 
  152. --- RECORDSEPARATOR ---
  153. are read-only. 
  154. --- RECORDSEPARATOR ---
  155. The return value will not be 0 if any file is not copied. For example, if you specify 
  156. --- RECORDSEPARATOR ---
  157. baCopyXFilesProgress( "c:\data" , "d:\backup" , "*.*" , "IfNewer", ....... ) 
  158. --- RECORDSEPARATOR ---
  159. and any of the files in c:\data are newer than the ones in d:\backup, the return 
  160. --- RECORDSEPARATOR ---
  161. result will be 7 (Dest file is newer than Source). A result of 0 will be returned only if 
  162. --- RECORDSEPARATOR ---
  163. none of the files in c:\data is newer than d:\backup. 
  164. --- RECORDSEPARATOR ---
  165. A return value of 6 (Dest file exists) can only be returned when Overwrite is 
  166. --- RECORDSEPARATOR ---
  167. "IfNotExist".
  168. --- RECORDSEPARATOR ---
  169.  
  170. --- RECORDSEPARATOR ---
  171. (continued next page)